from django.conf.urls.defaults import patterns
from django.contrib.auth.decorators import login_required
from django.views.generic.base import TemplateView
from friend.views import ListFriendView, CreateFriendView

urlpatterns = patterns(
    "friend.views"
    , (r"^$", login_required(ListFriendView.as_view()))
    , (r"^add/$", login_required(CreateFriendView.as_view()))

    , (r"^dashboard/$", login_required(TemplateView.as_view(template_name = "friend/dashboard.html")))
)
